package com.myblog.domain.entity.enums;




public enum GlobalResponseEnum {
    SUCCESS(200,"success"),
    ERROR(500,"error"),
    NEED_LOGIN(401,"需要登录后操作"),
    NO_OPERATOR_AUTH(403,"无权限操作"),
    USERNAME_EXIST(501,"用户名已存在"),
    PHONENUMBER_EXIST(502,"手机号已存在"),
    EMAIL_EXIST(503, "邮箱已存在"),
    REQUIRE_USERNAME(504, "必需填写用户名"),
    LOGIN_ERROR(505,"用户名或密码错误"),
    SUCCESS_LOGOUT(200,"成功登出"),
    FILE_TYPE_ERROR(506,"文件格式错误"),
    REQUIRE_PASSWORD(507, "必需填写密码"),
    REQUIRE_EMAIL(508, "必需填写email"),
    REQUIRE_NICKNAME(509, "必需填写昵称"),
    NICKNAME_EXIST(510,"昵称已存在"),
    ID_NO_EXIST(511,"ID不存在"),
    NO_DATA(512,"无数据"),
    CANT_MAKE_PARENT_TOSELF(513,"不能将自身设为父菜单"),
    NEED_PHONE(514,"需要电话号");

    public Integer code;
    public String msg;



     GlobalResponseEnum(Integer code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
